<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition template="./../../template/mainFrame/mainFrame.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">

    <ui:define name="left">
        <h:form>
            <h:panelGrid columns="1">
                <c:forEach items="#{stuMainFrame.resouceMap}" var="myresouce">
                    <h:commandLink value="#{myresouce.name}" action="#{stuMainFrame.setPageName(myresouce.valueinfo)}"/>         
                </c:forEach>
            </h:panelGrid>
        </h:form>
    </ui:define>

    <ui:define name="content">
        <ui:include src="#{stuMainFrame.pageName}.xhtml"/>
    </ui:define>

</ui:composition>